package cn.sw.file.service;

import cn.sw.common.database.architecture.service.BaseService;
import cn.sw.common.database.domain.dto.form.AttachmentFormDto;
import cn.sw.common.database.domain.dto.query.AttachmentQueryDto;
import cn.sw.common.database.domain.entity.Attachment;
import cn.sw.common.database.domain.vo.vo.AttachmentVo;
import cn.sw.common.entity.R;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


/**
*
* 附件表 服务类
* @author 张众森 (个人博客:https://)
* @date 2025-05-23
* @tags 做一个优秀的全栈架构
*/
public interface AttachmentService extends BaseService<Attachment, AttachmentFormDto, AttachmentQueryDto, AttachmentVo> {


    R<String> uploadFile(MultipartFile file) throws IOException;

    void downloadFile(String id, HttpServletResponse response);
}
